# -*- coding: utf-8 -*-
"""
Created on Wed Sep 11 15:50:17 2024

@author: Administrator
"""
import datetime
from datetime import date

# get datetime
currenttime = datetime.datetime.now()
print(currenttime)

#format datetime
print("%s",currenttime.strftime("%Y-%m-%d %H:%M:%S"))

#get date
current_day=date.today()
print(current_day)

#create date

birthday1 = date(2000,10,1)
print(birthday1)

birthday2 = date(1984,10,1)
print((birthday1-birthday2).days)